package com.intellagric.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Product implements Serializable {
    private String produceId;

    private String categoryId;

    private String produceName;

    private String produceNo;

    private Float price;

    private Integer buyNum;

    private String unit;

    private String supplier;

    private Date supplyDate;

    private String buyer;

    private String storageId;

    private Integer remainNum;

    private Integer threshold;

    private Date createDate;

    private String produceBrief;

    private String produceParameter;

    //关联数据
    private String userId;

    private String useNum;

    private String usedRemainNum;

    public String getUserId() {
        return userId;
    }

    @Override
    public String toString() {
        return "Product{" +
                "produceId='" + produceId + '\'' +
                ", categoryId='" + categoryId + '\'' +
                ", produceName='" + produceName + '\'' +
                ", produceNo=" + produceNo +
                ", price=" + price +
                ", buyNum=" + buyNum +
                ", unit='" + unit + '\'' +
                ", supplier='" + supplier + '\'' +
                ", supplyDate=" + supplyDate +
                ", buyer='" + buyer + '\'' +
                ", storageId='" + storageId + '\'' +
                ", remainNum=" + remainNum +
                ", threshold=" + threshold +
                ", createDate=" + createDate +
                ", produceBrief='" + produceBrief + '\'' +
                ", produceParameter='" + produceParameter + '\'' +
                ", userId='" + userId + '\'' +
                ", useNum='" + useNum + '\'' +
                ", usedRemainNum='" + usedRemainNum + '\'' +
                ", children=" + children +
                ", remarks='" + remarks + '\'' +
                ", status='" + status + '\'' +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUseNum() {
        return useNum;
    }

    public void setUseNum(String useNum) {
        this.useNum = useNum;
    }

    public String getUsedRemainNum() {
        return usedRemainNum;
    }

    public void setUsedRemainNum(String usedRemainNum) {
        this.usedRemainNum = usedRemainNum;
    }

    public List<Product> getChildren() {
        return children;
    }

    public void setChildren(List<Product> children) {
        this.children = children;
    }

    private List<Product> children;

    private String remarks;

    private String status;

    private String delFlag;

    private static final long serialVersionUID = 1L;

    public String getProduceId() {
        return produceId;
    }

    public void setProduceId(String produceId) {
        this.produceId = produceId == null ? null : produceId.trim();
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId == null ? null : categoryId.trim();
    }

    public String getProduceName() {
        return produceName;
    }

    public void setProduceName(String produceName) {
        this.produceName = produceName == null ? null : produceName.trim();
    }

    public String getProduceNo() {
        return produceNo;
    }

    public void setProduceNo(String produceNo) {
        this.produceNo = produceNo;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getBuyNum() {
        return buyNum;
    }

    public void setBuyNum(Integer buyNum) {
        this.buyNum = buyNum;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit == null ? null : unit.trim();
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier == null ? null : supplier.trim();
    }

    public Date getSupplyDate() {
        return supplyDate;
    }

    public void setSupplyDate(Date supplyDate) {
        this.supplyDate = supplyDate;
    }

    public String getBuyer() {
        return buyer;
    }

    public void setBuyer(String buyer) {
        this.buyer = buyer == null ? null : buyer.trim();
    }

    public String getStorageId() {
        return storageId;
    }

    public void setStorageId(String storageId) {
        this.storageId = storageId == null ? null : storageId.trim();
    }

    public Integer getRemainNum() {
        return remainNum;
    }

    public void setRemainNum(Integer remainNum) {
        this.remainNum = remainNum;
    }

    public Integer getThreshold() {
        return threshold;
    }

    public void setThreshold(Integer threshold) {
        this.threshold = threshold;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getProduceBrief() {
        return produceBrief;
    }

    public void setProduceBrief(String produceBrief) {
        this.produceBrief = produceBrief == null ? null : produceBrief.trim();
    }

    public String getProduceParameter() {
        return produceParameter;
    }

    public void setProduceParameter(String produceParameter) {
        this.produceParameter = produceParameter == null ? null : produceParameter.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag == null ? null : delFlag.trim();
    }
}